package com.hk.service.order;

import java.util.List;

import com.hk.commons.HqlFilter;
import com.hk.commons.entity.order.OrderInfo;
import com.hk.commons.entity.order.OrderRouteInfo;

public interface IOrderRouteInfo {
	public OrderRouteInfo findById(long id);

	/**
	 * 保存
	 * 
	 * @param b
	 * @return
	 */
	public Long add(OrderRouteInfo u);
	
	/**
	 * 根据订单添加路由
	 * @param order
	 * @return
	 */
	public Long addByOrder(OrderInfo  order);

	/**
	 * 删除
	 * 
	 * @param id
	 * @return
	 */
	public void delete(OrderRouteInfo u);

	/**
	 * 更新
	 * 
	 * @param b
	 */
	public void update(OrderRouteInfo u);

	public List<OrderRouteInfo> findByFilter(HqlFilter hqlFilter, int pageNum,
			int pageSize);

	public List<OrderRouteInfo> findByFilter(HqlFilter hqlFilter);

	public Long countByFilter(HqlFilter hqlFilter);
	
	public OrderRouteInfo findByOrderId(long orderId);
	
	public void merge(OrderRouteInfo o);
	
}
